<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Reference Current Mode Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__ctb__functions__aref.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Reference Current Mode Functions<div class="ingroups"><a class="el" href="group__group__ctb.html">CTB          (Continuous Time Block)</a> &raquo; <a class="el" href="group__group__ctb__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>This set of functions impacts all opamps on the chip. </p>
<p>Notice how some of these functions do not take a base address input. When calling <a class="el" href="group__group__ctb__functions__aref.html#ga5a5dfa4b6150d4ba15f05a5c5ccdcaae">Cy_CTB_SetCurrentMode</a> for a CTB instance on the device, it should be called for all other CTB instances as well. This is because there is only one IPTAT level (1 uA or 100 nA) chip wide. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga5a5dfa4b6150d4ba15f05a5c5ccdcaae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__aref.html#ga5a5dfa4b6150d4ba15f05a5c5ccdcaae">Cy_CTB_SetCurrentMode</a> (<a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *base, <a class="el" href="group__group__ctb__enums.html#ga279738cdf45bae5815fa28d15158b928">cy_en_ctb_current_mode_t</a> currentMode)</td></tr>
<tr class="memdesc:ga5a5dfa4b6150d4ba15f05a5c5ccdcaae"><td class="mdescLeft">&#160;</td><td class="mdescRight">High level function to configure the current modes of the opamps.  <a href="#ga5a5dfa4b6150d4ba15f05a5c5ccdcaae">More...</a><br /></td></tr>
<tr class="separator:ga5a5dfa4b6150d4ba15f05a5c5ccdcaae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9aa45db21ccdca8c3770f22d781f1a44"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__aref.html#ga9aa45db21ccdca8c3770f22d781f1a44">Cy_CTB_SetIptatLevel</a> (<a class="el" href="group__group__ctb__enums.html#ga8430fbb8a80a0e6423f91062071dc018">cy_en_ctb_iptat_t</a> iptat)</td></tr>
<tr class="memdesc:ga9aa45db21ccdca8c3770f22d781f1a44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the IPTAT reference level to 1 uA or 100 nA.  <a href="#ga9aa45db21ccdca8c3770f22d781f1a44">More...</a><br /></td></tr>
<tr class="separator:ga9aa45db21ccdca8c3770f22d781f1a44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa9aa3f2c29f0c6ff8cf53c085f3e94a1"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__aref.html#gaa9aa3f2c29f0c6ff8cf53c085f3e94a1">Cy_CTB_SetPumpClkSource</a> (PASS_Type *base, <a class="el" href="group__group__ctb__enums.html#gab17cdf969bc01f75e31685058296f747">cy_en_ctb_clk_pump_source_t</a> pumpClk)</td></tr>
<tr class="memdesc:gaa9aa3f2c29f0c6ff8cf53c085f3e94a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the clock source for both charge pumps in the CTB.  <a href="#gaa9aa3f2c29f0c6ff8cf53c085f3e94a1">More...</a><br /></td></tr>
<tr class="separator:gaa9aa3f2c29f0c6ff8cf53c085f3e94a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa6518a1a10a15d0bc1715b71ea0bcf37"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__aref.html#gaa6518a1a10a15d0bc1715b71ea0bcf37">Cy_CTB_EnableRedirect</a> (void)</td></tr>
<tr class="memdesc:gaa6518a1a10a15d0bc1715b71ea0bcf37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normally, the AREF IZTAT is routed to the CTB IZTAT and the AREF IPTAT is routed to the CTB IPTAT:  <a href="#gaa6518a1a10a15d0bc1715b71ea0bcf37">More...</a><br /></td></tr>
<tr class="separator:gaa6518a1a10a15d0bc1715b71ea0bcf37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf6a14c3b143dc0699aaa001e01114355"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__aref.html#gaf6a14c3b143dc0699aaa001e01114355">Cy_CTB_DisableRedirect</a> (void)</td></tr>
<tr class="memdesc:gaf6a14c3b143dc0699aaa001e01114355"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable the redirection of the AREF IPTAT to the CTB IZTAT for all opamps on the device as enabled by <a class="el" href="group__group__ctb__functions__aref.html#gaa6518a1a10a15d0bc1715b71ea0bcf37">Cy_CTB_EnableRedirect</a>.  <a href="#gaf6a14c3b143dc0699aaa001e01114355">More...</a><br /></td></tr>
<tr class="separator:gaf6a14c3b143dc0699aaa001e01114355"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga5a5dfa4b6150d4ba15f05a5c5ccdcaae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5a5dfa4b6150d4ba15f05a5c5ccdcaae">&#9670;&nbsp;</a></span>Cy_CTB_SetCurrentMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_CTB_SetCurrentMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__ctb__enums.html#ga279738cdf45bae5815fa28d15158b928">cy_en_ctb_current_mode_t</a>&#160;</td>
          <td class="paramname"><em>currentMode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>High level function to configure the current modes of the opamps. </p>
<p>This function configures all opamps of the CTB to the same current mode. These modes are differentiated by the reference current level, the opamp input range, and the Deep Sleep mode operation.</p>
<ul>
<li>The reference current level is set using <a class="el" href="group__group__ctb__functions__aref.html#ga9aa45db21ccdca8c3770f22d781f1a44">Cy_CTB_SetIptatLevel</a></li>
<li>When 1 uA current level is used in Deep Sleep,<ul>
<li>All generators in the AREF must be enabled in Deep Sleep. That is, <a class="el" href="group__group__sysanalog__functions.html#ga5d6d537beaf82fddf8e06f30b1d308b3">Cy_SysAnalog_SetDeepSleepMode</a> is called with CY_SYSANALOG_DEEPSLEEP_IPTAT_IZTAT_VREF.</li>
</ul>
</li>
<li>When 100 nA current level is used,<ul>
<li><a class="el" href="group__group__ctb__functions__aref.html#gaa6518a1a10a15d0bc1715b71ea0bcf37">Cy_CTB_EnableRedirect</a> is called to route the AREF IPTAT reference to the opamp IZTAT and disable the opamps IPTAT.</li>
<li>The IPTAT generator is enabled in Deep Sleep. That is, <a class="el" href="group__group__sysanalog__functions.html#ga5d6d537beaf82fddf8e06f30b1d308b3">Cy_SysAnalog_SetDeepSleepMode</a> is called with CY_SYSANALOG_DEEPSLEEP_IPTAT_2 unless it is already configured for CY_SYSANALOG_DEEPSLEEP_IPTAT_IZTAT_VREF.</li>
</ul>
</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>The IPTAT level is a chip wide configuration so multiple opamps cannot operate at different IPTAT levels. When calling <a class="el" href="group__group__ctb__functions__aref.html#ga5a5dfa4b6150d4ba15f05a5c5ccdcaae">Cy_CTB_SetCurrentMode</a> for a CTB instance on the device, it should be called for all other CTB instances as well.</dd></dl>
<table class="doxtable">
<tr>
<th>Current Mode </th><th>IPTAT Level </th><th>Input Range </th><th>Deep Sleep Operation  </th></tr>
<tr>
<td><a class="el" href="group__group__ctb__enums.html#gga279738cdf45bae5815fa28d15158b928ae79c4f20db95be6f845a1664e3e1a2ba">CY_CTB_CURRENT_HIGH_ACTIVE</a> </td><td>1 uA </td><td>Rail-to-Rail (charge pump enabled) </td><td>Disabled in Deep Sleep  </td></tr>
<tr>
<td><a class="el" href="group__group__ctb__enums.html#gga279738cdf45bae5815fa28d15158b928a0bc0fbd0ad5387ddbab821402ee5ceeb">CY_CTB_CURRENT_HIGH_ACTIVE_DEEPSLEEP</a> </td><td>1 uA </td><td>0 - VDDA-1.5 V (charge pump disabled) </td><td>Enabled in Deep Sleep  </td></tr>
<tr>
<td><a class="el" href="group__group__ctb__enums.html#gga279738cdf45bae5815fa28d15158b928a6f9459a876b5b2e5442ec31dec329aff">CY_CTB_CURRENT_LOW_ACTIVE_DEEPSLEEP</a> </td><td>100 nA </td><td>0 - VDDA-1.5 V (charge pump disabled) </td><td>Enabled in Deep Sleep  </td></tr>
</table>
<dl class="section note"><dt>Note</dt><dd>The output range of the opamp is 0.2 V to VDDA - 0.2 V (depending on output load).</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">currentMode</td><td>Current mode selection</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Configure all CTBs on the device to use a 1 uA IPTAT reference.</span></div><div class="line"><span class="comment">     * Enable the charge pump and disable Deep Sleep operation for both opamps in the specified CTB block. */</span></div><div class="line">    </div><div class="line">    <a class="code" href="group__group__ctb__functions__aref.html#ga5a5dfa4b6150d4ba15f05a5c5ccdcaae">Cy_CTB_SetCurrentMode</a>(CTBM0, <a class="code" href="group__group__ctb__enums.html#gga279738cdf45bae5815fa28d15158b928ae79c4f20db95be6f845a1664e3e1a2ba">CY_CTB_CURRENT_HIGH_ACTIVE</a>);</div></div><!-- fragment -->
</div>
</div>
<a id="ga9aa45db21ccdca8c3770f22d781f1a44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9aa45db21ccdca8c3770f22d781f1a44">&#9670;&nbsp;</a></span>Cy_CTB_SetIptatLevel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_CTB_SetIptatLevel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__ctb__enums.html#ga8430fbb8a80a0e6423f91062071dc018">cy_en_ctb_iptat_t</a>&#160;</td>
          <td class="paramname"><em>iptat</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the IPTAT reference level to 1 uA or 100 nA. </p>
<p>The IPTAT generator is used by the CTB for slope offset drift.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iptat</td><td>Value from enum <a class="el" href="group__group__ctb__enums.html#ga8430fbb8a80a0e6423f91062071dc018">cy_en_ctb_iptat_t</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Configure all CTBs on the device to use a 100 nA IPTAT reference</span></div><div class="line"><span class="comment">     * for ultra low power. In order for the opamps to function with a 100 nA</span></div><div class="line"><span class="comment">     * IPTAT reference, Cy_CTB_EnableRedirect() must be called. </span></div><div class="line"><span class="comment">     *</span></div><div class="line"><span class="comment">     * This is a low level function that only configures the IPTAT reference level.</span></div><div class="line"><span class="comment">     * The preferred method is the Cy_CTB_SetCurrentMode() as it is a high</span></div><div class="line"><span class="comment">     * level function that configures both the IPTAT reference and the current </span></div><div class="line"><span class="comment">     * redirection. */</span></div><div class="line">    </div><div class="line">    <a class="code" href="group__group__ctb__functions__aref.html#ga9aa45db21ccdca8c3770f22d781f1a44">Cy_CTB_SetIptatLevel</a>(<a class="code" href="group__group__ctb__enums.html#gga8430fbb8a80a0e6423f91062071dc018a3db7156e7ea8ee0aea0ab8b8c06d103d">CY_CTB_IPTAT_LOW</a>);</div></div><!-- fragment -->
</div>
</div>
<a id="gaa9aa3f2c29f0c6ff8cf53c085f3e94a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa9aa3f2c29f0c6ff8cf53c085f3e94a1">&#9670;&nbsp;</a></span>Cy_CTB_SetPumpClkSource()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_CTB_SetPumpClkSource </td>
          <td>(</td>
          <td class="paramtype">PASS_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__ctb__enums.html#gab17cdf969bc01f75e31685058296f747">cy_en_ctb_clk_pump_source_t</a>&#160;</td>
          <td class="paramname"><em>pumpClk</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the clock source for both charge pumps in the CTB. </p>
<p>Recall that each opamp has its own charge pump. The clock can come from:</p>
<ul>
<li><a class="el" href="group__group__ctb__enums.html#ggab17cdf969bc01f75e31685058296f747a328fdf373b541780577a1512901ea537">CY_CTB_CLK_PUMP_SRSS</a> - a dedicated clock pump divider <a class="el" href="group__group__sysclk__clk__pump.html">Pump Clock</a>. Call the following functions to configure the pump clock from the SRSS:<ul>
<li><a class="el" href="group__group__sysclk__clk__pump__funcs.html#ga14876f9c0e98b283defb6883fff0d906">Cy_SysClk_ClkPumpSetSource</a></li>
<li><a class="el" href="group__group__sysclk__clk__pump__funcs.html#ga70d97ab2865f7705619ce7369baee81f">Cy_SysClk_ClkPumpDisable</a></li>
<li><a class="el" href="group__group__sysclk__clk__pump__funcs.html#ga8d55fc79d235c3918ecb20b953afdb99">Cy_SysClk_ClkPumpSetDivider</a></li>
<li><a class="el" href="group__group__sysclk__clk__pump__funcs.html#ga0249934e0fd1d05a25f7565a8c5b6cde">Cy_SysClk_ClkPumpEnable</a></li>
</ul>
</li>
<li><a class="el" href="group__group__ctb__enums.html#ggab17cdf969bc01f75e31685058296f747af379a95545f77d200a58cdadbe9e93fc">CY_CTB_CLK_PUMP_PERI</a> - one of the peripheral clock dividers <a class="el" href="group__group__sysclk__clk__peripheral.html">Peripherals Clock Dividers</a>. Call the following functions to configure a Peri Clock divider as the pump clock:<ul>
<li><a class="el" href="group__group__sysclk__clk__peripheral__funcs.html#ga2bfc8de7ad90c50e0202827e0d067c7a">Cy_SysClk_PeriphDisableDivider</a></li>
<li><a class="el" href="group__group__sysclk__clk__peripheral__funcs.html#ga2f480c53ecec720ceed823b2692f1698">Cy_SysClk_PeriphAssignDivider</a> with the IP block set to PCLK_PASS_CLOCK_PUMP_PERI</li>
<li><a class="el" href="group__group__sysclk__clk__peripheral__funcs.html#gae7042898b1b6835673182e462be6976e">Cy_SysClk_PeriphSetDivider</a></li>
<li><a class="el" href="group__group__sysclk__clk__peripheral__funcs.html#ga0725e2b222edc601b7d3f56d86d4ff75">Cy_SysClk_PeriphEnableDivider</a></li>
</ul>
</li>
<li><a class="el" href="group__group__ctb__enums.html#ggab17cdf969bc01f75e31685058296f747a0a18bee7011f49552f490dafe7ff7c14">CY_CTB_CLK_PUMP_DEEPSLEEP</a> - a PASS_v2 deep sleep clock source <a class="el" href="group__group__sysanalog.html#group_sysanalog_dpslp">Deep Sleep Clock</a>. Call the following functions to configure the Deep Sleep Clock Source:<ul>
<li><a class="el" href="group__group__sysanalog__functions.html#gacef4e5ae550518abd0004e46e5ec4d64">Cy_SysAnalog_Init</a> with proper Deep Sleep Clock source and divider settings and either:</li>
<li><a class="el" href="group__group__sysanalog__functions__lposc.html#ga3d570989fa28e6a4e86ae51970930f6c">Cy_SysAnalog_LpOscEnable</a> or:</li>
<li><a class="el" href="group__group__sysclk__mf__funcs.html#ga283d5413436f7a9f05b24d52ac2026be">Cy_SysClk_MfoEnable</a></li>
<li><a class="el" href="group__group__sysclk__mf__funcs.html#ga54c1e75dcdea293cdfd2662ceffa26e0">Cy_SysClk_ClkMfSetDivider</a> (if needed)</li>
<li><a class="el" href="group__group__sysclk__mf__funcs.html#ga195a613b088f27c5d7667a6fecb0bbbc">Cy_SysClk_ClkMfEnable</a></li>
</ul>
</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to the PASS register structure.</td></tr>
    <tr><td class="paramname">pumpClk</td><td>Clock source selection (PumpClk, PeriClk or Deep Sleep Clock) for the pump. Select a value from <a class="el" href="group__group__ctb__enums.html#gab17cdf969bc01f75e31685058296f747">cy_en_ctb_clk_pump_source_t</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Use a 24 Mhz clock from the SRSS for the charge pump clock. */</span></div><div class="line">    </div><div class="line">    <span class="comment">/* Set the source to clock Path 0, which has been configured for 100 MHz FLL. */</span></div><div class="line">    <a class="code" href="group__group__sysclk__clk__pump__funcs.html#ga14876f9c0e98b283defb6883fff0d906">Cy_SysClk_ClkPumpSetSource</a>(<a class="code" href="group__group__sysclk__clk__pump__enums.html#ggab816c6625c6a20701956a4831526cddaa0ddc1f655b605f0939f6ea9635de3378">CY_SYSCLK_PUMP_IN_CLKPATH0</a>);</div><div class="line">    </div><div class="line">    <span class="comment">/* Divide the 100 Mhz by 4. */</span></div><div class="line">    <a class="code" href="group__group__sysclk__clk__pump__funcs.html#ga8d55fc79d235c3918ecb20b953afdb99">Cy_SysClk_ClkPumpSetDivider</a>(<a class="code" href="group__group__sysclk__clk__pump__enums.html#gga8207bb47d9ecd521dc95375c1d46189eaadac3fd4b4235df3814fdf3c8468a273">CY_SYSCLK_PUMP_DIV_4</a>);</div><div class="line">    <a class="code" href="group__group__sysclk__clk__pump__funcs.html#ga0249934e0fd1d05a25f7565a8c5b6cde">Cy_SysClk_ClkPumpEnable</a>();</div><div class="line">    </div><div class="line">    <span class="comment">/* Select the source for the pump clock to be from the SRSS. */</span></div><div class="line">    <a class="code" href="group__group__ctb__functions__aref.html#gaa9aa3f2c29f0c6ff8cf53c085f3e94a1">Cy_CTB_SetPumpClkSource</a>(PASS, <a class="code" href="group__group__ctb__enums.html#ggab17cdf969bc01f75e31685058296f747a328fdf373b541780577a1512901ea537">CY_CTB_CLK_PUMP_SRSS</a>);</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Use a 25 Mhz clock from the PeriClk dividers for the charge pump clock. */</span></div><div class="line">    uint32_t dividerNum = 1UL;</div><div class="line">    uint32_t dividerValue = 1UL;</div><div class="line">    </div><div class="line">    <span class="comment">/* Use the 8-bit divider type and divider number 1 from the PeriClk, which has been configured for 50 MHz. */</span></div><div class="line">    <a class="code" href="group__group__sysclk__clk__peripheral__funcs.html#ga2f480c53ecec720ceed823b2692f1698">Cy_SysClk_PeriphAssignDivider</a>(PCLK_PASS_CLOCK_PUMP_PERI, <a class="code" href="group__group__sysclk__clk__peripheral__enums.html#gga06138349be16d91fd5d00ded2f4592b8ad2299deae6e36a070de5a60368b319ad">CY_SYSCLK_DIV_8_BIT</a>, dividerNum);</div><div class="line">    </div><div class="line">    <span class="comment">/* Divide the 50 MHz PeriClk by 2 (dividerValue + 1). */</span></div><div class="line">    <a class="code" href="group__group__sysclk__clk__peripheral__funcs.html#gae7042898b1b6835673182e462be6976e">Cy_SysClk_PeriphSetDivider</a>(<a class="code" href="group__group__sysclk__clk__peripheral__enums.html#gga06138349be16d91fd5d00ded2f4592b8ad2299deae6e36a070de5a60368b319ad">CY_SYSCLK_DIV_8_BIT</a>, dividerNum, dividerValue);</div><div class="line">    <a class="code" href="group__group__sysclk__clk__peripheral__funcs.html#ga0725e2b222edc601b7d3f56d86d4ff75">Cy_SysClk_PeriphEnableDivider</a>(<a class="code" href="group__group__sysclk__clk__peripheral__enums.html#gga06138349be16d91fd5d00ded2f4592b8ad2299deae6e36a070de5a60368b319ad">CY_SYSCLK_DIV_8_BIT</a>, dividerNum);</div><div class="line">    </div><div class="line">    <span class="comment">/* Select the source for the pump clock to be from the PeriClk dividers. */</span></div><div class="line">    <a class="code" href="group__group__ctb__functions__aref.html#gaa9aa3f2c29f0c6ff8cf53c085f3e94a1">Cy_CTB_SetPumpClkSource</a>(PASS, <a class="code" href="group__group__ctb__enums.html#ggab17cdf969bc01f75e31685058296f747af379a95545f77d200a58cdadbe9e93fc">CY_CTB_CLK_PUMP_PERI</a>);</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Use a 2 Mhz MF clock for the charge pump clock. */</span></div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga283d5413436f7a9f05b24d52ac2026be">Cy_SysClk_MfoEnable</a>(<span class="keyword">true</span>);</div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga54c1e75dcdea293cdfd2662ceffa26e0">Cy_SysClk_ClkMfSetDivider</a>(1UL);</div><div class="line">    <a class="code" href="group__group__sysclk__mf__funcs.html#ga195a613b088f27c5d7667a6fecb0bbbc">Cy_SysClk_ClkMfEnable</a>();</div><div class="line">    <a class="code" href="group__group__ctb__functions__aref.html#gaa9aa3f2c29f0c6ff8cf53c085f3e94a1">Cy_CTB_SetPumpClkSource</a>(PASS, <a class="code" href="group__group__ctb__enums.html#ggab17cdf969bc01f75e31685058296f747a0a18bee7011f49552f490dafe7ff7c14">CY_CTB_CLK_PUMP_DEEPSLEEP</a>);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaa6518a1a10a15d0bc1715b71ea0bcf37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa6518a1a10a15d0bc1715b71ea0bcf37">&#9670;&nbsp;</a></span>Cy_CTB_EnableRedirect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_CTB_EnableRedirect </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Normally, the AREF IZTAT is routed to the CTB IZTAT and the AREF IPTAT is routed to the CTB IPTAT: </p>
<ul>
<li>CTB.IZTAT = AREF.IZTAT</li>
<li>CTB.IPTAT = AREF.IPTAT</li>
</ul>
<p>However, the AREF IPTAT can be redirected to the CTB IZTAT and the CTB IPTAT is off.</p>
<ul>
<li>CTB.IZTAT = AREF.IPTAT</li>
<li>CTB.IPTAT = HiZ</li>
</ul>
<p>The redirection applies to all opamps on the device and should be used when the IPTAT bias level is set to 100 nA (see <a class="el" href="group__group__ctb__functions__aref.html#ga9aa45db21ccdca8c3770f22d781f1a44">Cy_CTB_SetIptatLevel</a>).</p>
<p>When the CTB.IPTAT is HiZ, the CTB cannot compensate for the slope of the offset across temperature.</p>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: All CTBs on the device have been configured to use</span></div><div class="line"><span class="comment">     * a 100 nA IPTAT reference. Redirect the AREF IPTAT current to the CTB IZTAT</span></div><div class="line"><span class="comment">     * for proper functionality. </span></div><div class="line"><span class="comment">     *</span></div><div class="line"><span class="comment">     * This is a low level function that only enables the current redirection.</span></div><div class="line"><span class="comment">     * The preferred method is the Cy_CTB_SetCurrentMode() as it is a high</span></div><div class="line"><span class="comment">     * level function that configures both the current redirection and the</span></div><div class="line"><span class="comment">     * IPTAT reference. */</span></div><div class="line">    </div><div class="line">    <a class="code" href="group__group__ctb__functions__aref.html#gaa6518a1a10a15d0bc1715b71ea0bcf37">Cy_CTB_EnableRedirect</a>();</div></div><!-- fragment -->
</div>
</div>
<a id="gaf6a14c3b143dc0699aaa001e01114355"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf6a14c3b143dc0699aaa001e01114355">&#9670;&nbsp;</a></span>Cy_CTB_DisableRedirect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_CTB_DisableRedirect </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disable the redirection of the AREF IPTAT to the CTB IZTAT for all opamps on the device as enabled by <a class="el" href="group__group__ctb__functions__aref.html#gaa6518a1a10a15d0bc1715b71ea0bcf37">Cy_CTB_EnableRedirect</a>. </p>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
